﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace MvcApplication2.Models
{
    public class UserDetails
    {
         [StringLength(15, MinimumLength = 5, ErrorMessage = "用户名长度介于5跟15之间")]
        public string UserName { get; set; }
        public string PassWord { get; set; }
    }
}